package com.xr.blog.tools;

import javax.validation.Valid;
/**
 * description : valid校验封装类
 *
 * @author 幸仁杰
 * @create 2020/6/24 16:28
 */
public class Valids<T> {

    @Valid
    T collection;

    public T getCollection() {
        return collection;
    }

    public void setCollection(T collection) {
        this.collection = collection;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"collection\":")
                .append(collection);
        sb.append('}');
        return sb.toString();
    }
}
